fix(ui): scope empty-state placeholder styling per caller and add regression tests - #30553
Merged
Merged
Conversation
getErrorPlaceHolder hardcoded the agents-card styling (tw:bg-primary tw:border tw:border-secondary tw:rounded-xl), which leaked into the ingestion pipelines list-table empty state and rendered an unwanted bordered card (regression from #30284). The helper now takes an optional className each caller passes: the Agents tab keeps the card, the ingestion table uses a plain tw:relative tw:py-8 layout. Adds regression coverage: getErrorPlaceHolder unit tests asserting the className is forwarded and the card classes never leak to a caller that did not ask for them, plus call-site guards in MetadataAgentsView and IngestionListTable pinning the className each passes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
chirag-madlani
approved these changes
Jul 28, 2026
aniketkatkar97
enabled auto-merge
July 28, 2026 09:20
ShaileshParmar11
approved these changes
Jul 28, 2026
aniketkatkar97
disabled auto-merge
July 28, 2026 10:26
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 29, 2026
|
Contributor
|
Changes have been cherry-picked to the 2.0 branch. |
github-actions Bot
pushed a commit
that referenced
this pull request
Jul 29, 2026
…ression tests (#30553) * fix(ui): scope empty-state placeholder styling per caller getErrorPlaceHolder hardcoded the agents-card styling (tw:bg-primary tw:border tw:border-secondary tw:rounded-xl), which leaked into the ingestion pipelines list-table empty state and rendered an unwanted bordered card (regression from #30284). The helper now takes an optional className each caller passes: the Agents tab keeps the card, the ingestion table uses a plain tw:relative tw:py-8 layout. Adds regression coverage: getErrorPlaceHolder unit tests asserting the className is forwarded and the card classes never leak to a caller that did not ask for them, plus call-site guards in MetadataAgentsView and IngestionListTable pinning the className each passes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Fix checkstyle --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> (cherry picked from commit e16f929)
Contributor
|
Failed to cherry-pick changes to the 1.13 branch. |
Code Review ✅ ApprovedScopes empty-state placeholder styling per caller by accepting an optional className in OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar | Powered by Gitar — free for open source |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Describe your changes:
Fixes #30552
I worked on scoping the empty-state placeholder styling per caller because the shared
getErrorPlaceHolderhelper hardcoded the agents-card styling (tw:bg-primary tw:border tw:border-secondary tw:rounded-xl). Since the same helper renders the empty state for both the service Agents tab and the Ingestion pipelines list table, that card styling leaked into the list-table empty state and rendered an unwanted bordered card — a visual regression introduced by #30284.getErrorPlaceHoldernow accepts an optionalclassNamethat each caller passes: the Agents tab keeps the card styling, while the ingestion list table uses a plaintw:relative tw:py-8layout.Regression coverage added:
IngestionUtils.test.tsx— unit tests forgetErrorPlaceHolderasserting theclassNameis forwarded to the placeholder and that the card classes never leak to a caller that did not pass them.MetadataAgentsView.test.tsx/IngestionListTable.test.tsx— call-site guards pinning the exactclassNameeach surface passes.Proven RED/GREEN: re-hardcoding the old className turns the helper tests red; the fix keeps them green.
Screenshots
Agents tab — empty state keeps the card (intended):
Ingestion Pipelines list table — empty state is plain, no leaked card border (the fix):
Type of change:
Checklist:
Greptile Summary
This PR scopes shared ingestion empty-state styling by caller.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Reviews (4): Last reviewed commit: "Merge branch 'main' into fix/ingestion-e..." | Re-trigger Greptile